import axios from "axios"
import { getCookie } from "./cookie"

const instance = axios.create({
    baseURL: "http://localhost:8000",
    timeout: 10000,
})
let token = getCookie("token")
instance.defaults.headers.common['Authorization'] = "Bearer " + token
export default instance